horizontal method in algebra